package cn.iocoder.yudao.module.crm.controller.admin.customer.vo.customer;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Builder;
import lombok.Data;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.File;

@Schema(description = "管理后台 - 客户导入 Request VO")
@Data
@Builder
public class CrmCustomerImportReqVO {

//    @Schema(description = "Excel 文件", requiredMode = Schema.RequiredMode.REQUIRED)
//    @NotNull(message = "Excel 文件不能为空")
//    private File file;


    @Schema(description = "Excel 文件", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "Excel 文件不能为空")
    private String filepath;

//    @Schema(description = "是否支持更新", requiredMode = Schema.RequiredMode.REQUIRED, example = "true")
//    @NotNull(message = "是否支持更新不能为空")
//    private Boolean updateSupport;

    @Schema(description = "负责人", example = "1")
    private Long ownerUserId; // 为 null 则客户进入公海
    private Long tenantId;
    @Schema(description = "所属模块")
    private Long moduleId;

    @Schema(description = "是否公海导入")
    private Boolean pool;

    @Schema(description = "需要处理重复的字段")
    // 1-名称; 2-手机号
    private Integer repeatHandleField;

    @Schema(description = "重复时的处理方式")
    // 1-更新; 2-插入; 3-跳过
    private Integer repeatHandleType;

}
